package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class PostBase{
	boolean[] modified=new boolean[21];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public PostBase(){}
	public PostBase(java.lang.Long postId,java.lang.String title,java.lang.Long userId,java.lang.Long repliedId,java.lang.String username,java.lang.String contentS,java.lang.String contentR,java.lang.String contentP,java.lang.String contentA,java.util.Date postTime,java.lang.Integer orderWeight,java.lang.Integer replyPolicy,java.lang.Integer state,java.lang.Long scoreNegative,java.lang.Long scorePositive,java.util.Date lastModifyTime,java.util.Date lastReplyTime,java.lang.String categories,java.lang.Long replies,java.lang.Long reads,java.lang.Long wordCount){
		setPostId(postId);
		setTitle(title);
		setUserId(userId);
		setRepliedId(repliedId);
		setUsername(username);
		setContentS(contentS);
		setContentR(contentR);
		setContentP(contentP);
		setContentA(contentA);
		setPostTime(postTime);
		setOrderWeight(orderWeight);
		setReplyPolicy(replyPolicy);
		setState(state);
		setScoreNegative(scoreNegative);
		setScorePositive(scorePositive);
		setLastModifyTime(lastModifyTime);
		setLastReplyTime(lastReplyTime);
		setCategories(categories);
		setReplies(replies);
		setReads(reads);
		setWordCount(wordCount);
	}
	public void setPostId(java.lang.Long postId){
		if(postId!=null) {
			set("postId",postId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getPostId(){
		return (java.lang.Long)get("postId");
	}
	public void setTitle(java.lang.String title){
		if(title!=null) {
			set("title",title);
			this.modified[1] =true;
		}
	}
	public java.lang.String getTitle(){
		return (java.lang.String)get("title");
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setRepliedId(java.lang.Long repliedId){
		if(repliedId!=null) {
			set("repliedId",repliedId);
			this.modified[3] =true;
		}
	}
	public java.lang.Long getRepliedId(){
		return (java.lang.Long)get("repliedId");
	}
	public void setUsername(java.lang.String username){
		if(username!=null) {
			set("username",username);
			this.modified[4] =true;
		}
	}
	public java.lang.String getUsername(){
		return (java.lang.String)get("username");
	}
	public void setContentS(java.lang.String contentS){
		if(contentS!=null) {
			set("content_s",contentS);
			this.modified[5] =true;
		}
	}
	public java.lang.String getContentS(){
		return (java.lang.String)get("content_s");
	}
	public void setContentR(java.lang.String contentR){
		if(contentR!=null) {
			set("content_r",contentR);
			this.modified[6] =true;
		}
	}
	public java.lang.String getContentR(){
		return (java.lang.String)get("content_r");
	}
	public void setContentP(java.lang.String contentP){
		if(contentP!=null) {
			set("content_p",contentP);
			this.modified[7] =true;
		}
	}
	public java.lang.String getContentP(){
		return (java.lang.String)get("content_p");
	}
	public void setContentA(java.lang.String contentA){
		if(contentA!=null) {
			set("content_a",contentA);
			this.modified[8] =true;
		}
	}
	public java.lang.String getContentA(){
		return (java.lang.String)get("content_a");
	}
	public void setPostTime(java.util.Date postTime){
		if(postTime!=null) {
			set("postTime",postTime);
			this.modified[9] =true;
		}
	}
	public java.util.Date getPostTime(){
		return (java.util.Date)get("postTime");
	}
	public void setOrderWeight(java.lang.Integer orderWeight){
		if(orderWeight!=null) {
			set("orderWeight",orderWeight);
			this.modified[10] =true;
		}
	}
	public java.lang.Integer getOrderWeight(){
		return (java.lang.Integer)get("orderWeight");
	}
	public void setReplyPolicy(java.lang.Integer replyPolicy){
		if(replyPolicy!=null) {
			set("replyPolicy",replyPolicy);
			this.modified[11] =true;
		}
	}
	public java.lang.Integer getReplyPolicy(){
		return (java.lang.Integer)get("replyPolicy");
	}
	public void setState(java.lang.Integer state){
		if(state!=null) {
			set("state",state);
			this.modified[12] =true;
		}
	}
	public java.lang.Integer getState(){
		return (java.lang.Integer)get("state");
	}
	public void setScoreNegative(java.lang.Long scoreNegative){
		if(scoreNegative!=null) {
			set("scoreNegative",scoreNegative);
			this.modified[13] =true;
		}
	}
	public java.lang.Long getScoreNegative(){
		return (java.lang.Long)get("scoreNegative");
	}
	public void setScorePositive(java.lang.Long scorePositive){
		if(scorePositive!=null) {
			set("scorePositive",scorePositive);
			this.modified[14] =true;
		}
	}
	public java.lang.Long getScorePositive(){
		return (java.lang.Long)get("scorePositive");
	}
	public void setLastModifyTime(java.util.Date lastModifyTime){
		if(lastModifyTime!=null) {
			set("lastModifyTime",lastModifyTime);
			this.modified[15] =true;
		}
	}
	public java.util.Date getLastModifyTime(){
		return (java.util.Date)get("lastModifyTime");
	}
	public void setLastReplyTime(java.util.Date lastReplyTime){
		if(lastReplyTime!=null) {
			set("lastReplyTime",lastReplyTime);
			this.modified[16] =true;
		}
	}
	public java.util.Date getLastReplyTime(){
		return (java.util.Date)get("lastReplyTime");
	}
	public void setCategories(java.lang.String categories){
		if(categories!=null) {
			set("categories",categories);
			this.modified[17] =true;
		}
	}
	public java.lang.String getCategories(){
		return (java.lang.String)get("categories");
	}
	public void setReplies(java.lang.Long replies){
		if(replies!=null) {
			set("replies",replies);
			this.modified[18] =true;
		}
	}
	public java.lang.Long getReplies(){
		return (java.lang.Long)get("replies");
	}
	public void setReads(java.lang.Long reads){
		if(reads!=null) {
			set("reads",reads);
			this.modified[19] =true;
		}
	}
	public java.lang.Long getReads(){
		return (java.lang.Long)get("reads");
	}
	public void setWordCount(java.lang.Long wordCount){
		if(wordCount!=null) {
			set("wordCount",wordCount);
			this.modified[20] =true;
		}
	}
	public java.lang.Long getWordCount(){
		return (java.lang.Long)get("wordCount");
	}
}
